import { DictStorage } from "@/storage/dict.storage";

export const getDictLabel = (value: string, dictCode: string) => {
  const dictList = DictStorage.getDictItemsByCode(dictCode);
  return dictList.find((item: any) => item.value === value)?.label || "/";
};
